home *** CD-ROM | disk | FTP | other *** search
/ Plug-In Power Pack for Netscape Communicator / Plug-In Power Pack for Netscape Communicator.iso / plugins / dataviews / include / vnxwidget.h < prev    next >
C/C++ Source or Header  |  1997-05-08  |  2KB  |  103 lines

  1. /*
  2. |    @(#)VNXwidget.h    V1.8    3/16/95
  3. |===================================================================
  4. |
  5. |    Copyright (C) 1986,1990,1991 V. I. Corporation
  6. |
  7. |    VNXwidget.h - Widget set independant header file
  8. |
  9. |    Author: Donald Beaudry
  10. |
  11. |    Date:   November 8, 1991
  12. |
  13. |    Revisions:
  14. |    
  15. |===================================================================
  16. */
  17. #ifndef VNXWIDGET_H
  18. #define VNXWIDGET_H
  19.  
  20. #ifdef CONST
  21. #undef CONST
  22. #endif
  23.  
  24. #ifndef WINNT
  25. #include <X11/Intrinsic.h>
  26. #endif
  27.  
  28. #define VNX_SLIDER_RANGE 1000
  29.  
  30. #define VNX_ARROW_UP 'u'
  31. #define VNX_ARROW_DOWN 'd'
  32. #define VNX_ARROW_LEFT 'l'
  33. #define VNX_ARROW_RIGHT 'r'
  34.  
  35. #define VNX_RADIO_INDICATOR 'r'
  36. #define VNX_CHECK_INDICATOR 'c'
  37.  
  38. #ifndef WINNT
  39. typedef struct vnx_button
  40. {
  41.    char *name;
  42.    RECTANGLE area;
  43.    int index;
  44.    int (*action)();
  45.    ULONG foreground_color;
  46.    ULONG background_color;
  47.    Widget widget;
  48.    char *data;
  49. } VNX_BUTTON;
  50.  
  51.  
  52. typedef struct vnx_slider
  53. {
  54.    char *name;
  55.    RECTANGLE area;
  56.    int (*action)();
  57.    ULONG foreground_color;
  58.    ULONG background_color;
  59.    Widget widget;
  60.    char *data;
  61. } VNX_SLIDER;
  62.  
  63.  
  64. typedef struct vnx_text
  65. {
  66.    char *name;
  67.    char *sample_text;
  68.    RECTANGLE sample_area;
  69.    RECTANGLE area;
  70.    int max_length;
  71.    int (*action)();
  72.    int (*action2)();
  73.    ULONG foreground_color;
  74.    ULONG background_color;
  75.    Widget widget;
  76.    char *data;
  77. } VNX_TEXT;
  78.  
  79.  
  80. typedef struct vnx_label
  81. {
  82.    char *name;
  83.    RECTANGLE area;
  84.    ULONG foreground_color;
  85.    ULONG background_color;
  86.    Widget widget;
  87. } VNX_LABEL;
  88.  
  89.  
  90.  
  91. typedef struct vnx_layout
  92. {
  93.    char *name;
  94.    RECTANGLE area;
  95.    Widget widget;
  96.    ULONG foreground_color;
  97.    ULONG background_color;
  98.    char *data;
  99. } VNX_LAYOUT;
  100.  
  101. #endif
  102. #endif
  103.